package com.string;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        Scanner input = new Scanner((System.in));
        System.out.println("请输入电子邮箱名");
        String email =input.next();

        int index1 = email.indexOf("@");



    }
}
